package com.hdw.med.bean.model;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

import java.io.Serializable;

public class BaseDb implements Serializable {
    private static final long serialVersionUID = 1L;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long idDb;

    private String euTp;

    /**
     * 1.业务库 2.数据仓库 3.元数据
     *
     * @mbg.generated
     */
    private String euDbTp;

    private String characterSet;

    private String na;

    private String driver;

    private String url;

    private String usename;

    private String psword;

    private String tbSchema;

    /**
     * 0.启   1.停
     *
     * @mbg.generated
     */
    private String fgStop;

    private String status;

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Long getIdDb() {
        return idDb;
    }

    public void setIdDb(Long idDb) {
        this.idDb = idDb;
    }

    public String getEuTp() {
        return euTp;
    }

    public void setEuTp(String euTp) {
        this.euTp = euTp;
    }

    public String getEuDbTp() {
        return euDbTp;
    }

    public void setEuDbTp(String euDbTp) {
        this.euDbTp = euDbTp;
    }

    public String getCharacterSet() {
        return characterSet;
    }

    public void setCharacterSet(String characterSet) {
        this.characterSet = characterSet;
    }

    public String getNa() {
        return na;
    }

    public void setNa(String na) {
        this.na = na;
    }

    public String getDriver() {
        return driver;
    }

    public void setDriver(String driver) {
        this.driver = driver;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getUsename() {
        return usename;
    }

    public void setUsename(String usename) {
        this.usename = usename;
    }

    public String getPsword() {
        return psword;
    }

    public void setPsword(String psword) {
        this.psword = psword;
    }

    public String getTbSchema() {
        return tbSchema;
    }

    public void setTbSchema(String tbSchema) {
        this.tbSchema = tbSchema;
    }

    public String getFgStop() {
        return fgStop;
    }

    public void setFgStop(String fgStop) {
        this.fgStop = fgStop;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        BaseDb other = (BaseDb) that;
        return (this.getIdDb() == null ? other.getIdDb() == null : this.getIdDb().equals(other.getIdDb())) && (this.getEuTp() == null ? other.getEuTp() == null : this.getEuTp().equals(other.getEuTp())) && (this.getEuDbTp() == null ? other.getEuDbTp() == null : this.getEuDbTp().equals(other.getEuDbTp())) && (this.getCharacterSet() == null ? other.getCharacterSet() == null : this.getCharacterSet().equals(other.getCharacterSet())) && (this.getNa() == null ? other.getNa() == null : this.getNa().equals(other.getNa())) && (this.getDriver() == null ? other.getDriver() == null : this.getDriver().equals(other.getDriver())) && (this.getUrl() == null ? other.getUrl() == null : this.getUrl().equals(other.getUrl())) && (this.getUsename() == null ? other.getUsename() == null : this.getUsename().equals(other.getUsename())) && (this.getPsword() == null ? other.getPsword() == null : this.getPsword().equals(other.getPsword())) && (this.getTbSchema() == null ? other.getTbSchema() == null : this.getTbSchema().equals(other.getTbSchema())) && (this.getFgStop() == null ? other.getFgStop() == null : this.getFgStop().equals(other.getFgStop()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getIdDb() == null) ? 0 : getIdDb().hashCode());
        result = prime * result + ((getEuTp() == null) ? 0 : getEuTp().hashCode());
        result = prime * result + ((getEuDbTp() == null) ? 0 : getEuDbTp().hashCode());
        result = prime * result + ((getCharacterSet() == null) ? 0 : getCharacterSet().hashCode());
        result = prime * result + ((getNa() == null) ? 0 : getNa().hashCode());
        result = prime * result + ((getDriver() == null) ? 0 : getDriver().hashCode());
        result = prime * result + ((getUrl() == null) ? 0 : getUrl().hashCode());
        result = prime * result + ((getUsename() == null) ? 0 : getUsename().hashCode());
        result = prime * result + ((getPsword() == null) ? 0 : getPsword().hashCode());
        result = prime * result + ((getTbSchema() == null) ? 0 : getTbSchema().hashCode());
        result = prime * result + ((getFgStop() == null) ? 0 : getFgStop().hashCode());
        return result;
    }

}